package com.zbb.exam_system.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

@Data
/**
 * JsonInclude如果加该注解的字段为null,那么就不序列化这个字段了
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserDto {
    private String userId;
    private String userName;
    private String userPwd;
    private List<String> roles;
}
